package com.xsomnus.java_basic.juc.exceptions;

/**
 * @author @叶小夏
 * @since 2019/7/29 0029 17:14
 * - 才需学也,学需静也/非淡泊无以明志，非宁静无以致远
 */
public class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        System.out.println("捕获线程" + t.getName() + "异常， 信息描述: " + e.getLocalizedMessage());
    }
}
